package com.xiangban.volunteer_platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author Mr. Ma
 * @Data 2021/1/22 13:50
 */
@Data
@ApiModel("订单")
@TableName("orders")
public class Orders {

    @ApiModelProperty(value = "订单id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "任务id")
    private Integer taskId;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "任务酬劳")
    private BigDecimal taskPrice;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "订单状态 (1:完成，2:正在进行中，3:失效)")
    private String orderState;

    @ApiModelProperty(value = "签到时间")
    private String startTime;

    @ApiModelProperty(value = "签退时间")
    private String endTime;

}
